﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

namespace G.Reader.Data
{
    public class TXTReader
    {
        public TXTReader()
        {

        }
        IEnumerable<string> datas;
        public void Initial(System.IO.Stream stream)
        {
            using (System.IO.StreamReader reader = new System.IO.StreamReader(stream))
            {
                datas = GetStrs(reader);
            }
        }


        private IEnumerable<string> GetStrs(System.IO.StreamReader reader)
        {
            do
            {
                yield return reader.ReadLine();
            } while (!reader.EndOfStream);
        }


    }
}
